/*
 * @Author: Zhouhai 497675647@qq.com
 * @Date: 2023-02-08 14:14:11
 * @LastEditors: Zhouhai 497675647@qq.com
 * @LastEditTime: 2023-03-03 15:33:08
 */
import { Component, PropsWithChildren } from 'react'
import { Provider } from 'mobx-react'

import CounterStore from './store/counter'

import {useStore} from './store'

import './app.scss'


const store = {
  ...useStore
}
class App extends Component<PropsWithChildren> {

  
  componentDidMount() { }

  componentDidShow() { }

  componentDidHide() { }



  // this.props.children 就是要渲染的页面
  render() {
    return (
      <Provider store={store}>
        {this.props.children}
      </Provider>

    )
  }
}

export default App
